package com.css.fxfzypg.modules.baseData.service;

import com.css.fxfzypg.modules.baseData.queryParams.HisPrQueryParams;
import com.css.fxfzypg.modules.baseData.entity.HisPrEntity;
import com.css.fxfzypg.modules.baseData.vo.HisPrVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @author y1fan
 * @create 2022-08-22 9:53
 */
public interface HisprService {


    boolean saveHisPr(HisPrEntity hisPrEntity) throws UnsupportedEncodingException;

    Map<String, Object> getHisPrById(String id);

    boolean updateHisPr(HisPrEntity hisPrEntity);

    Map<String,Object> getAllHisPrByParams(HisPrQueryParams queryParams);

    boolean deleteHisPr(List<String> ids);

    void exportExcel1(HttpServletResponse response, List<String> ids)throws IOException;

    void exportExcel2(HttpServletResponse response, HisPrQueryParams queryParams)throws IOException;

    Map<String, Object> importExcel(MultipartFile file)throws IOException;

    boolean getRole();

    List<HisPrEntity> getDataByLongitudeAndLatitude(String epiLon, String epiLat, BigDecimal o, String m);

    HisPrEntity getDateById(String hisPrId);

    Integer countByCounty(String name);
    Integer countByCity(String name);
    Integer countByProvince(String name);
}
